package com.cn.yz.springboot.jersey;

import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.server.spring.scope.RequestContextFilter;

import com.cn.yz.springboot.interceptor.ControllerInterceptor;
import com.cn.yz.springboot.interceptor.JerseyFilter;

public class JerseyConfig extends ResourceConfig {
    public JerseyConfig() {
        register(RequestContextFilter.class);
        /*拦截器 权限检验*/
        register(JerseyFilter.class);
        packages("com.cn.yz.springboot.resource");
    }
}